package com.xiaoli.userserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaoli.userserver.entity.User;
import org.apache.ibatis.annotations.Update;

public interface UserMapper extends BaseMapper<User> {

    @Update("update user set point = point+#{changePoint} where id = #{id}")
    void updatePoint(Long id, Integer changePoint);
}
